package org.example.design.designmode.builder.standardbuilder;

/**
 * @author songyafei
 */
public class CourseBulider {

    private  static Course course =new Course();

    public CourseBulider addName(String name){
        course.setName(name);
        return this;
    }

    public CourseBulider addNates(String nates){
        course.setNates(nates);
        return this;
    }

    public CourseBulider addVideo(String video){
        course.setVideo(video);
        return this;
    }

    public Course addReplay(String replay){
        course.setPrice(replay);
        return course;
    }

    public CourseBulider addPrice(String price){
        course.setPrice(price);
        return this;
    }

    public  String getToString(){
        return course.toString();
    }

}
